package com.dstation.domain;

import java.sql.Timestamp;

public class VideoInfo {
    private Long videoId;

    private Long userId;

    private Integer videoClassId;   //所属的子类ID

    private String videoTitle;

    private String videoDescription;

    private String videoURL;    //视频地址

    private Integer videoDuration;  //视频时长

    private String videoCoverImg;   //视频封面

    private Integer videoViewNum;   //视频观看数

    private Integer videoShareNum;  //视频分享数

    private Boolean isFree;

    private Boolean isPass;

    private String bulletURL;   //弹幕地址

    private Timestamp createDate;

    //以下的属性是为了方便而加，并不符合数据库范式要求
    /** 该视频谁发布的 */
    private String userName;
    /** 上传者头像 */
    private String userIcon;
    /** 上传者个性签名 */
    private String userSignature;
    /** 点赞次数 */
    private long likedNum;
    /** 所属子类别名 */
    private String classificationName;


    public Long getVideoId() {
        return videoId;
    }

    public void setVideoId(Long videoId) {
        this.videoId = videoId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getVideoClassId() {
        return videoClassId;
    }

    public void setVideoClassId(Integer videoClassId) {
        this.videoClassId = videoClassId;
    }

    public String getVideoTitle() {
        return videoTitle;
    }

    public void setVideoTitle(String videoTitle) {
        this.videoTitle = videoTitle;
    }

    public String getVideoDescription() {
        return videoDescription;
    }

    public void setVideoDescription(String videoDescription) {
        this.videoDescription = videoDescription;
    }

    public String getVideoURL() {
        return videoURL;
    }

    public void setVideoURL(String videoURL) {
        this.videoURL = videoURL;
    }

    public Integer getVideoDuration() {
        return videoDuration;
    }

    public void setVideoDuration(Integer videoDuration) {
        this.videoDuration = videoDuration;
    }

    public String getVideoCoverImg() {
        return videoCoverImg;
    }

    public void setVideoCoverImg(String videoCoverImg) {
        this.videoCoverImg = videoCoverImg;
    }

    public Integer getVideoViewNum() {
        return videoViewNum;
    }

    public void setVideoViewNum(Integer videoViewNum) {
        this.videoViewNum = videoViewNum;
    }

    public Integer getVideoShareNum() {
        return videoShareNum;
    }

    public void setVideoShareNum(Integer videoShareNum) {
        this.videoShareNum = videoShareNum;
    }

    public Boolean getIsFree() {
        return isFree;
    }

    public void setIsFree(Boolean isFree) {
        this.isFree = isFree;
    }

    public Boolean getIsPass() {
        return isPass;
    }

    public void setIsPass(Boolean isPass) {
        this.isPass = isPass;
    }

    public String getBulletURL() {
        return bulletURL;
    }

    public void setBulletURL(String bulletURL) {
        this.bulletURL = bulletURL;
    }

    public Boolean getFree() {
        return isFree;
    }

    public void setFree(Boolean free) {
        isFree = free;
    }

    public Boolean getPass() {
        return isPass;
    }

    public void setPass(Boolean pass) {
        isPass = pass;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserIcon() {
        return userIcon;
    }

    public void setUserIcon(String userIcon) {
        this.userIcon = userIcon;
    }

    public String getUserSignature() {
        return userSignature;
    }

    public void setUserSignature(String userSignature) {
        this.userSignature = userSignature;
    }

    public long getLikedNum() {
        return likedNum;
    }

    public void setLikedNum(long likedNum) {
        this.likedNum = likedNum;
    }

    public String getClassificationName() {
        return classificationName;
    }

    public void setClassificationName(String classificationName) {
        this.classificationName = classificationName;
    }

    @Override
    public String toString() {
        return "VideoInfo{" +
                "videoId=" + videoId +
                ", userId=" + userId +
                ", videoClassId=" + videoClassId +
                ", videoTitle='" + videoTitle + '\'' +
                ", videoDescription='" + videoDescription + '\'' +
                ", videoURL='" + videoURL + '\'' +
                ", videoDuration=" + videoDuration +
                ", videoCoverImg='" + videoCoverImg + '\'' +
                ", videoViewNum=" + videoViewNum +
                ", videoShareNum=" + videoShareNum +
                ", isFree=" + isFree +
                ", isPass=" + isPass +
                ", bulletURL='" + bulletURL + '\'' +
                ", createDate=" + createDate +
                ", userName='" + userName + '\'' +
                ", userIcon='" + userIcon + '\'' +
                ", userSignature='" + userSignature + '\'' +
                ", likedNum=" + likedNum +
                ", classificationName='" + classificationName + '\'' +
                '}';
    }
}